package xyz.kongbai121.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.stereotype.Repository;
import xyz.kongbai121.demo.domain.ResourcesShare;

import java.util.List;

/**
 * 资源分享 Mapper
 * @author 空白
 */
@Repository
public interface ResourcesShareMapper extends BaseMapper<ResourcesShare> {

    /**
     * 查询资源列表
     * @param title      关键字(模糊查询)
     * @param page       分页对象
     * @return
     */
    List<ResourcesShare> list(String title, Page<ResourcesShare> page);

    /**
     * 查询指定资源
     * @param id        资源id
     * @return
     */
    ResourcesShare get(Long id);
}
